package math.matrix;

import java.nio.FloatBuffer;
import util.Util;

public class mat4f 
{
    
    public static final int nEntries = 16;
    
    private FloatBuffer buffer;
    public float[] mat;
/*  Matrix Structure:
        0   4   8   12
        1   5   9   13
        2   6   10  14
        3   7   11  15
*/
    
    public mat4f() 
    {
        mat = new float[nEntries];
    }
    
    public FloatBuffer getBuffer() 
    {
        return buffer;
    }
    
    public void setTo(mat4f other) 
    {
        Matmath.setTo(other, this);
    }
    
    public void setToIdentity() 
    {
        Matmath.setIdentity(this);
    }
    
    public void calcBuffer() 
    {
        buffer = Util.getFloatBuf(mat);
    }
    
}
